//
//  PublicClass.swift
//  SwfitDemo
//
//  Created by menchao on 2018/9/26.
//  Copyright © 2018年 Test. All rights reserved.
//

import UIKit

class PublicClass {
    
    private var userName: String?
   
    func userInfo() -> String? {
        return self.userName
    }
}

extension PublicClass{
    var accessPrivate: String {
        return userName!
    }
}


 class FilePrivateClass {
    
    func vistorFilePrivate() {

        var test = PublicClass()
   
    }

}
